package com.youpai.platform.order.web.entity.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @time: 2022/11/27
 * @author: huanghao
 * @description: 评价接口请求参数
 */
@Data
public class CreateEvaluateReq {

    @NotBlank(message = "订单ID不能为空")
    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @NotBlank(message = "评价不能为空")
    @ApiModelProperty(value = "评价")
    private String evaluate;

    @NotBlank(message = "星级不能为空")
    @ApiModelProperty(value = "星级")
    private Integer star;
}
